﻿using GrainManage.Web.Resources;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace GrainManage.Web.Models.Trade
{
    public class AddTradeModel
    {
        [Required(ErrorMessageResourceType = typeof(ContactResx), ErrorMessageResourceName = "ContactIDRequired")]
        [Display(ResourceType = typeof(ContactResx), Name = "ContactID")]
        public int ContactID { get; set; }

        [Required(ErrorMessageResourceType = typeof(PriceResx), ErrorMessageResourceName = "GrainRequired")]
        [Display(ResourceType = typeof(PriceResx), Name = "Grain")]
        public string Grain { get; set; }

        [Required(ErrorMessageResourceType = typeof(TradeResx), ErrorMessageResourceName = "PriceRequired")]
        [Display(ResourceType = typeof(TradeResx), Name = "Price")]
        public decimal Price { get; set; }

        [Required(ErrorMessageResourceType = typeof(TradeResx), ErrorMessageResourceName = "WeightRequired")]
        [Display(ResourceType = typeof(TradeResx), Name = "Weight")]
        public decimal Weight { get; set; }

        [Required(ErrorMessageResourceType = typeof(TradeResx), ErrorMessageResourceName = "ActualMoneyRequired")]
        [Display(ResourceType = typeof(TradeResx), Name = "ActualMoney")]
        public decimal ActualMoney { get; set; }

        [Required(ErrorMessageResourceType = typeof(TradeResx), ErrorMessageResourceName = "TradeTypeRequired")]
        [Display(ResourceType = typeof(TradeResx), Name = "TradeType")]
        public string TradeType { get; set; }

        [Display(ResourceType = typeof(TradeResx), Name = "Remarks")]
        public string Remarks { get; set; }
    }
}